<?php
class NewsRoute extends CakeRoute {

	function parse($url) {
		$params = parent::parse($url);
		if (empty($params)) {
			return false;
		}
var_dump($params);
		App::import('Model', 'News');
		$Post = new Post();
		$count = $Post->find('count', array(
				'conditions' => array('News.slug LIKE ?' => $params['slug'] .'%'),
				'recursive' => -1
		));
		if ($count) {
			return $params;
		}
		return false;
	}

}